<?php

namespace common\models\kingdee;

use Yii;

/**
 * This is the model class for table "T_HR_PERSONPOSITION".
 *
 * @property string $FID
 * @property string $FJOINDATE
 * @property integer $FTRYOUTMONTH
 * @property string $FQUITDATE
 * @property string $FFORMALDATE
 * @property string $FCREATORID
 * @property string $FCREATETIME
 * @property string $FLASTUPDATEUSERID
 * @property string $FLASTUPDATETIME
 * @property string $FPERSONID
 * @property string $FJOINGROUPDATE
 * @property string $FBASEDATE
 * @property string $FJOINGROUPYEARS
 * @property string $FJOINCOMPANYYEARS
 * @property string $FJOINBASEYEARS
 * @property string $FHRORGUNITID
 * @property string $FCONTROLUNITID
 * @property integer $FWORKTIME
 * @property string $FJOBGRADE
 * @property string $FENTERDATE
 * @property string $FLEFTDATE
 * @property integer $FISENROLLAGAIN
 * @property string $FPERSONDEP
 * @property string $FJOBLEVELID
 * @property string $FJOBSTARTDATE
 * @property integer $FISHAVEWORK
 * @property integer $FISHIGHEST
 * @property string $FZHUANYJSZW
 * @property string $FPRIMARYPOSITIONID
 * @property string $FHIGHESTDEGREEDATE
 * @property string $FJOBGRADEENDDATE
 * @property string $FGKADMINID
 * @property integer $FISADMIN
 * @property integer $FISTECH
 * @property string $FHIGHESTPDEGREEID
 * @property string $FOLDPERSONDEPID
 * @property string $FJOINSYSTEMDATE
 * @property string $FADJUSTSYSVALUE
 * @property string $FADJUSTWORKVALUE
 * @property string $FADJUSTCOVALUE
 * @property string $FADJUSTGROUPVAL
 * @property string $FSYSSERVICEYEARS
 * @property string $FENROLLSOURCEID
 * @property string $FRETIREDATE
 * @property integer $FISIMPT
 * @property string $FZDY1
 * @property string $FZDY2
 * @property string $FZDY3
 * @property string $FZDY4
 * @property string $FZDY5
 * @property string $FZDY6
 * @property string $FZDY7
 * @property string $FZDY8
 * @property string $FZDY9
 * @property string $FZDY10
 * @property string $FZDY11
 * @property string $FZDY12
 * @property string $FZDY13
 * @property string $FZDY14
 * @property string $FZDY15
 * @property string $FZDY16
 * @property string $FZDY17
 * @property string $FZDY18
 * @property string $FZDY19
 * @property integer $FZDY20
 * @property integer $FZDY21
 * @property string $FZDY22
 * @property string $FZDY23
 * @property string $FZDY24
 * @property string $FZDY25
 * @property integer $FZDY26
 * @property string $FDIMISSIONREASONID
 * @property string $FNEWWORKTIME
 * @property string $FEXTWORKTIME
 * @property string $FLENOFACTUALSERVICE
 * @property string $FEFFDT
 * @property string $FLEFFDT
 * @property string $FHISTORYRELATEID
 * @property integer $FISLEADER
 * @property string $FLABCONTRACTFIRSTPARTY
 * @property string $FJOBSEQUENCEID
 */
class PersonPosition extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'T_HR_PERSONPOSITION';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db_hr');
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['FID'], 'required'],
            [['FJOINDATE', 'FQUITDATE', 'FFORMALDATE', 'FCREATETIME', 'FLASTUPDATETIME', 'FJOINGROUPDATE', 'FBASEDATE', 'FENTERDATE', 'FLEFTDATE', 'FJOBSTARTDATE', 'FHIGHESTDEGREEDATE', 'FJOBGRADEENDDATE', 'FJOINSYSTEMDATE', 'FRETIREDATE', 'FZDY9', 'FZDY10', 'FZDY11', 'FZDY12', 'FZDY13', 'FZDY14', 'FEFFDT', 'FLEFFDT'], 'safe'],
            [['FTRYOUTMONTH', 'FWORKTIME', 'FISENROLLAGAIN', 'FISHAVEWORK', 'FISHIGHEST', 'FISADMIN', 'FISTECH', 'FISIMPT', 'FZDY20', 'FZDY21', 'FZDY26', 'FISLEADER'], 'integer'],
            [['FJOINGROUPYEARS', 'FJOINCOMPANYYEARS', 'FJOINBASEYEARS', 'FADJUSTSYSVALUE', 'FADJUSTWORKVALUE', 'FADJUSTCOVALUE', 'FADJUSTGROUPVAL', 'FSYSSERVICEYEARS', 'FZDY18', 'FZDY19', 'FNEWWORKTIME', 'FEXTWORKTIME', 'FLENOFACTUALSERVICE'], 'number'],
            [['FID', 'FCREATORID', 'FLASTUPDATEUSERID', 'FPERSONID', 'FHRORGUNITID', 'FCONTROLUNITID', 'FJOBGRADE', 'FPERSONDEP', 'FJOBLEVELID', 'FPRIMARYPOSITIONID', 'FGKADMINID', 'FHIGHESTPDEGREEID', 'FOLDPERSONDEPID', 'FENROLLSOURCEID', 'FZDY1', 'FZDY2', 'FZDY3', 'FZDY4', 'FZDY5', 'FZDY6', 'FZDY7', 'FZDY8', 'FDIMISSIONREASONID', 'FHISTORYRELATEID', 'FLABCONTRACTFIRSTPARTY', 'FJOBSEQUENCEID'], 'string', 'max' => 44],
            [['FZHUANYJSZW'], 'string', 'max' => 2],
            [['FZDY15'], 'string', 'max' => 765],
            [['FZDY16', 'FZDY17', 'FZDY22', 'FZDY23', 'FZDY24', 'FZDY25'], 'string', 'max' => 240],
            [['FID', 'FID', 'FID', 'FID'], 'unique', 'targetAttribute' => ['FID', 'FID', 'FID', 'FID'], 'message' => 'The combination of  and Fid has already been taken.'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'FID' => Yii::t('kingdee', 'Fid'),
            'FJOINDATE' => Yii::t('kingdee', 'Fjoindate'),
            'FTRYOUTMONTH' => Yii::t('kingdee', 'Ftryoutmonth'),
            'FQUITDATE' => Yii::t('kingdee', 'Fquitdate'),
            'FFORMALDATE' => Yii::t('kingdee', 'Fformaldate'),
            'FCREATORID' => Yii::t('kingdee', 'Fcreatorid'),
            'FCREATETIME' => Yii::t('kingdee', 'Fcreatetime'),
            'FLASTUPDATEUSERID' => Yii::t('kingdee', 'Flastupdateuserid'),
            'FLASTUPDATETIME' => Yii::t('kingdee', 'Flastupdatetime'),
            'FPERSONID' => Yii::t('kingdee', 'Fpersonid'),
            'FJOINGROUPDATE' => Yii::t('kingdee', 'Fjoingroupdate'),
            'FBASEDATE' => Yii::t('kingdee', 'Fbasedate'),
            'FJOINGROUPYEARS' => Yii::t('kingdee', 'Fjoingroupyears'),
            'FJOINCOMPANYYEARS' => Yii::t('kingdee', 'Fjoincompanyyears'),
            'FJOINBASEYEARS' => Yii::t('kingdee', 'Fjoinbaseyears'),
            'FHRORGUNITID' => Yii::t('kingdee', 'Fhrorgunitid'),
            'FCONTROLUNITID' => Yii::t('kingdee', 'Fcontrolunitid'),
            'FWORKTIME' => Yii::t('kingdee', 'Fworktime'),
            'FJOBGRADE' => Yii::t('kingdee', 'Fjobgrade'),
            'FENTERDATE' => Yii::t('kingdee', 'Fenterdate'),
            'FLEFTDATE' => Yii::t('kingdee', 'Fleftdate'),
            'FISENROLLAGAIN' => Yii::t('kingdee', 'Fisenrollagain'),
            'FPERSONDEP' => Yii::t('kingdee', 'Fpersondep'),
            'FJOBLEVELID' => Yii::t('kingdee', 'Fjoblevelid'),
            'FJOBSTARTDATE' => Yii::t('kingdee', 'Fjobstartdate'),
            'FISHAVEWORK' => Yii::t('kingdee', 'Fishavework'),
            'FISHIGHEST' => Yii::t('kingdee', 'Fishighest'),
            'FZHUANYJSZW' => Yii::t('kingdee', 'Fzhuanyjszw'),
            'FPRIMARYPOSITIONID' => Yii::t('kingdee', 'Fprimarypositionid'),
            'FHIGHESTDEGREEDATE' => Yii::t('kingdee', 'Fhighestdegreedate'),
            'FJOBGRADEENDDATE' => Yii::t('kingdee', 'Fjobgradeenddate'),
            'FGKADMINID' => Yii::t('kingdee', 'Fgkadminid'),
            'FISADMIN' => Yii::t('kingdee', 'Fisadmin'),
            'FISTECH' => Yii::t('kingdee', 'Fistech'),
            'FHIGHESTPDEGREEID' => Yii::t('kingdee', 'Fhighestpdegreeid'),
            'FOLDPERSONDEPID' => Yii::t('kingdee', 'Foldpersondepid'),
            'FJOINSYSTEMDATE' => Yii::t('kingdee', 'Fjoinsystemdate'),
            'FADJUSTSYSVALUE' => Yii::t('kingdee', 'Fadjustsysvalue'),
            'FADJUSTWORKVALUE' => Yii::t('kingdee', 'Fadjustworkvalue'),
            'FADJUSTCOVALUE' => Yii::t('kingdee', 'Fadjustcovalue'),
            'FADJUSTGROUPVAL' => Yii::t('kingdee', 'Fadjustgroupval'),
            'FSYSSERVICEYEARS' => Yii::t('kingdee', 'Fsysserviceyears'),
            'FENROLLSOURCEID' => Yii::t('kingdee', 'Fenrollsourceid'),
            'FRETIREDATE' => Yii::t('kingdee', 'Fretiredate'),
            'FISIMPT' => Yii::t('kingdee', 'Fisimpt'),
            'FZDY1' => Yii::t('kingdee', 'Fzdy1'),
            'FZDY2' => Yii::t('kingdee', 'Fzdy2'),
            'FZDY3' => Yii::t('kingdee', 'Fzdy3'),
            'FZDY4' => Yii::t('kingdee', 'Fzdy4'),
            'FZDY5' => Yii::t('kingdee', 'Fzdy5'),
            'FZDY6' => Yii::t('kingdee', 'Fzdy6'),
            'FZDY7' => Yii::t('kingdee', 'Fzdy7'),
            'FZDY8' => Yii::t('kingdee', 'Fzdy8'),
            'FZDY9' => Yii::t('kingdee', 'Fzdy9'),
            'FZDY10' => Yii::t('kingdee', 'Fzdy10'),
            'FZDY11' => Yii::t('kingdee', 'Fzdy11'),
            'FZDY12' => Yii::t('kingdee', 'Fzdy12'),
            'FZDY13' => Yii::t('kingdee', 'Fzdy13'),
            'FZDY14' => Yii::t('kingdee', 'Fzdy14'),
            'FZDY15' => Yii::t('kingdee', 'Fzdy15'),
            'FZDY16' => Yii::t('kingdee', 'Fzdy16'),
            'FZDY17' => Yii::t('kingdee', 'Fzdy17'),
            'FZDY18' => Yii::t('kingdee', 'Fzdy18'),
            'FZDY19' => Yii::t('kingdee', 'Fzdy19'),
            'FZDY20' => Yii::t('kingdee', 'Fzdy20'),
            'FZDY21' => Yii::t('kingdee', 'Fzdy21'),
            'FZDY22' => Yii::t('kingdee', 'Fzdy22'),
            'FZDY23' => Yii::t('kingdee', 'Fzdy23'),
            'FZDY24' => Yii::t('kingdee', 'Fzdy24'),
            'FZDY25' => Yii::t('kingdee', 'Fzdy25'),
            'FZDY26' => Yii::t('kingdee', 'Fzdy26'),
            'FDIMISSIONREASONID' => Yii::t('kingdee', 'Fdimissionreasonid'),
            'FNEWWORKTIME' => Yii::t('kingdee', 'Fnewworktime'),
            'FEXTWORKTIME' => Yii::t('kingdee', 'Fextworktime'),
            'FLENOFACTUALSERVICE' => Yii::t('kingdee', 'Flenofactualservice'),
            'FEFFDT' => Yii::t('kingdee', 'Feffdt'),
            'FLEFFDT' => Yii::t('kingdee', 'Fleffdt'),
            'FHISTORYRELATEID' => Yii::t('kingdee', 'Fhistoryrelateid'),
            'FISLEADER' => Yii::t('kingdee', 'Fisleader'),
            'FLABCONTRACTFIRSTPARTY' => Yii::t('kingdee', 'Flabcontractfirstparty'),
            'FJOBSEQUENCEID' => Yii::t('kingdee', 'Fjobsequenceid'),
        ];
    }
}
